//
//  ZYRegisterViewController.m
//  重友科技
//
//  Created by Eileen Vivian on 2017/8/8.
//  Copyright © 2017年 dream. All rights reserved.
//

#import "ZYRegisterViewController.h"
#import "UIButton+countDown.h"
@interface ZYRegisterViewController ()
@property (weak, nonatomic) IBOutlet UIView *phoneView;
@property (weak, nonatomic) IBOutlet UIView *codeView;
@property (weak, nonatomic) IBOutlet UIButton *RegisterBtn;
@property (weak, nonatomic) IBOutlet UIView *vertifyView;
@property (weak, nonatomic) IBOutlet UIButton *rightBtn;
@property (weak, nonatomic) IBOutlet UITextField *phoneTF;
@property (weak, nonatomic) IBOutlet UITextField *yanCodeTF;
@property (weak, nonatomic) IBOutlet UITextField *resetCodeTF;

@end

@implementation ZYRegisterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.phoneView.layer setCornerRadius:20];
    self.phoneView.layer.masksToBounds = YES;
    [self.codeView.layer setCornerRadius:20];
    self.codeView.layer.masksToBounds = YES;
    [self.RegisterBtn.layer setCornerRadius:20];
    self.RegisterBtn.layer.masksToBounds = YES;
    [self.vertifyView.layer setCornerRadius:20];
    self.vertifyView.layer.masksToBounds = YES;
    [self.rightBtn.layer setCornerRadius:20];
    self.rightBtn.layer.masksToBounds = YES;
    self.rightBtn.titleLabel.font = [UIFont systemFontOfSize:13];
}
- (IBAction)getBtn:(UIButton *)sender {
    [_rightBtn startWithTime:60 title:@"获取验证码" countDownTitle:@"s后重新获取" mainColor:[UIColor colorWithRed:210/255.0 green:233/255.0 blue:251/255.0 alpha:1.0f] countColor:[UIColor colorWithRed:210/255.0 green:233/255.0 blue:251/255.0 alpha:1.0f]];
}

- (IBAction)rigisterBtn:(UIButton *)sender {
}

- (IBAction)dismissBtn:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    [self.view endEditing:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
